package cn.edu.sgu.www.mhxysy.dto.role;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.consts.RegExps;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class RoleJiadianUpdateDTO implements DataTransferObject {

    /**
     * 体质点
     */
    @Positive(message = "体质点" + CustomMessages.ILLEGAL)
    @NotNull(message = "体质点" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "体质点", required = true)
    private Integer tizhi;

    /**
     * 力量点
     */
    @Positive(message = "力量点" + CustomMessages.ILLEGAL)
    @NotNull(message = "力量点" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "力量点", required = true)
    private Integer liliang;

    /**
     * 敏捷点
     */
    @Positive(message = "敏捷点" + CustomMessages.ILLEGAL)
    @NotNull(message = "敏捷点" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "敏捷点", required = true)
    private Integer minjie;

    /**
     * 耐力点
     */
    @Positive(message = "耐力点" + CustomMessages.ILLEGAL)
    @NotNull(message = "耐力点" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "耐力点", required = true)
    private Integer naili;

    /**
     * 魔力点
     */
    @Positive(message = "魔力点" + CustomMessages.ILLEGAL)
    @NotNull(message = "魔力点" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "魔力点", required = true)
    private Integer moli;

    /**
     * 角色ID
     */
    @Pattern(regexp = RegExps.ROLE_ID, message = "角色ID" + CustomMessages.ILLEGAL)
    @NotBlank(message = CustomMessages.ROLE_ID_NOT_NULL)
    @ApiModelProperty(value = "角色ID", required = true)
    private String roleId;

    /**
     * 加点方案
     */
    @Positive(message = "加点方案" + CustomMessages.ILLEGAL)
    @NotNull(message = CustomMessages.JIADIAN_SCHEMA_NOT_NULL)
    @ApiModelProperty(value = "加点方案", required = true)
    private Integer jiadianSchema;
}